#ifndef CHATCLIENTWINDOW_H
#define CHATCLIENTWINDOW_H

#include <QWidget>
#include "mainwindow.h"
#include <tcpclient.h>
#include <QThread>

namespace Ui {
class ChatClientWindow;
}

class ChatClientWindow : public QWidget
{
    Q_OBJECT
public:
    explicit ChatClientWindow(/*MainWindow* m_mainwindow, */QWidget *parent = nullptr);
    ~ChatClientWindow();

signals:
    void clientSendMessage(QString message);
    void clientClose();
public slots:
    void closeClient();
    void sendMessage();
    void clientRename(QString _name);
private:
    Ui::ChatClientWindow *ui; // 指向生成的 UI 类
    TCPClient *m_tcpClient;
    QString name;

};
#endif // CHATCLIENTWINDOW_H
